<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="share/layout">>
<head>
    <meta charset="UTF-8" />
    <title>blog</title>
    <style type="text/css">
        table tr td{border:1px solid black;}
    </style>
</head>
<body>
    <div layout:fragment="content" style="width:96%;margin-left:auto;margin-right:auto;">
        <p th:text="'Hello, ' + ${name} + '!'" />
        <table>
            <tr>
                <th style="width: 10%;">NAME</th>
                <th tyle="width: 10%;">PRICE</th>
                <th tyle="width: 80%;">BLOGS</th>
            </tr>
            <tr th:each="u : ${list}">
                <td th:text="${u.id}">Onions</td>
                <td th:text="${u.nickname}">2.41</td>
                <td>
                    <table>
                        <tr>
                            <th>TITLE</th>
                            <th>CONTENT</th>
                            <th>IDate</th>
                        </tr>
                        <tr th:each="b : ${u.blogs}">
                            <td th:text="${b.title}">Onions</td>
                            <td th:text="${b.content}">2.41</td>
                            <td th:text="${b.pub_date}"></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
111122222222222233333333333344
        单个文件上传：<br/>
        <form action="upload" method="post" enctype="multipart/form-data">
            <input type="file" name="file"/>
            <input type="submit" value="提交上传"/>
        </form>
        <br/>
        多个文件上传：
        <form action="uploads" method="post" enctype="multipart/form-data">
            文件1：<input type="file" name="file"/><br/>
            文件2：<input type="file" name="file"/><br/>
            文件3：<input type="file" name="file"/><br/>
            <input type="submit" value="上传多个文件"/>
        </form>


    </div>


</body>
</html>